package com.muyu.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.muyu.common.core.domain.BaseEntity;
import com.muyu.system.enums.ChangeTypeEnum;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 保证金账户变动日志
 * </p>
 *
 * @author 作者
 * @since 2025-05-22
 */
@Getter
@Setter
@TableName("security_deposit_account_log")
public class SecurityDepositAccountLog extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 保证金账户id
     */
    @TableField("account_id")
    private Long accountId;

    /**
     * 店铺id
     */
    @TableField("store_id")
    private Long storeId;

    /**
     * 变动类型  1充值  2 退款  
     */
    @TableField("change_type")
    private ChangeTypeEnum changeType;

    /**
     * 变更金额
     */
    @TableField("change_amount")
    private Integer changeAmount;

    /**
     * 变更前账户金额
     */
    @TableField("change_before")
    private Integer changeBefore;

    /**
     * 变更后账户金额
     */
    @TableField("change_after")
    private Integer changeAfter;

    /**
     * 备注
     */
    @TableField("remark")
    private String remark;

}
